refactor: rename adapter package to linter and simplify concurrency#37
Merged
refactor: rename adapter package to linter and simplify concurrency#37
Conversation
- internal/adapter/ → internal/linter/ - adapter.go → linter.go - ConvertRules() → ConvertSingleRule() + BuildConfig() - Add SingleRuleResult type for single rule conversion - Add helpers.go with CleanJSONResponse - Add registry.go for global linter registry
- internal/cmd/convert.go - internal/cmd/init.go - internal/validator/validator.go - tests/integration/*_test.go - cmd/test-linter/main.go
- Remove nested linter-level parallelization - Add convertAllTasks() for flat (linter, rule) pair processing - Unify concurrency to CPU/2 for both routing and conversion
- Remove legacy ConvertRules/ConvertRulesParallel references - Document ConvertSingleRule + BuildConfig pattern - Add clear contribution guidelines - Follow llm/README.md style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
internal/adapter/→internal/linter/디렉토리 리네이밍adapter.go→linter.go파일명 변경ConvertRules()→ConvertSingleRule()+BuildConfig()인터페이스 분리SingleRuleResult타입 추가helpers.go: JSON 응답 정리 헬퍼 함수 추가registry.go: 전역 linter 레지스트리 추가convertLinterRules()제거,convertAllTasks()추가 (flat 병렬 처리)